package day3;

import java.io.*;

//测试字符类和缓冲流
public class TestChar {
    public static void main(String[] args) {
        try (FileReader fr = new FileReader("d://IO//testIO.txt");
             FileWriter fw = new FileWriter("d://IO//newIO.txt");
             BufferedReader br = new BufferedReader(fr);
             BufferedWriter bw = new BufferedWriter(fw);
        ){
            String msg = "";
            while ((msg = br.readLine()) != null){
                bw.write(msg);
                bw.newLine();
            }
        }catch (IOException e){
            e.printStackTrace();
        }
    }
}
